"""TestDjango URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
import os
from django.contrib import admin
from django.urls import path
from django.conf.urls import url,re_path
from zp import views as zp_views
from DataView import settings
if settings.DEBUG:
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    from django.conf.urls.static import static
urlpatterns = [
    path('admin/', admin.site.urls,name='admin'),
    re_path(r'^$',zp_views.home,name='home'),
    path('zwyx/dd_index/',zp_views.zwyx_dd,name='zwyx_dd'),
    path('zwyx/xl_index/',zp_views.zwyx_xl,name='zwyx_xl'),
    path('zwyx/gsgm_index/',zp_views.zwyx_gsgm,name='zwyx_gsgm'),
    path('zwyx/gsxz_index/',zp_views.zwyx_gsxz,name='zwyx_gsxz'),
    path('zwyx/gshy_index/',zp_views.zwyx_gshy,name='zwyx_gshy'),
    path('no_found/', zp_views.no_found,name='no_found'),
    path('zwyx/type_index/',zp_views.zwyx_type,name='type_index'),
    path('zwyx/zwyx_zw_count/',zp_views.zwyx_zw_count,name='zwyx_zw_count'),
]
if settings.DEBUG:
    urlpatterns += staticfiles_urlpatterns()
if not settings.DEBUG:
    handler404 = "zp.views.page_not_found"
    handler500 = "zp.views.sever_error"
